<!-- タスク追加ダイアログ -->
<div id="dlg_tsk_edit" style="visibility:hidden;position:absolute;top:-500px;">
	<div class="x-window-header"><%= image_tag("/images/dlg_title_tsk_edit.gif") %></div>
	<div class="x-window-body">
		<div class="dlg_maincontent">
			<form name='dlg_tsk_edit_form' id='dlg_tsk_edit_form' enctype='multipart/form-data'>
				<%= hidden_field_tag :dlg_tsk_edit_base_id %>
				<%= hidden_field :dlg_tsk_edit_task, :id %>
				<%= hidden_field :dlg_tsk_edit_comp, :id %>
				<%= hidden_field :dlg_tsk_edit_comp, :project_id %>
				<%= hidden_field :dlg_tsk_edit_comp, :task_kbn %>
				<span id="dlg_tsk_edit_hidden_area">
				</span>

				<table class="dlg_form_table" cellspacing="0">
					<tr>
						<th class="groupborder"><%= app_localized_message(:label, :task) %></th>
						<td class="groupborder">
							<%= text_field :dlg_tsk_edit_comp, :item_name, :style => "width:100%;ime-mode:active;" %>
						</td>
					</tr>
					<tr>
						<th><%= app_localized_message(:label, :priority) %></th>
						<td style="padding:0px;border:0px;">
							<table cellspacing="0" cellpadding="0" style="border:0px;margin:0px;font-size:12px;">
								<tr>
									<td style="width:90px;">
										<%= select_for_codes(:dlg_tsk_edit_task, :priority_kbn, [1, 2, 3], {}, :style=>"width:80px;" ) %>
									</td>
									<th style="text-align:right;padding-right:5px;width:70px;"><%= app_localized_message(:label, :plan_power) %></th>
									<td>
										<%= text_field :dlg_tsk_edit_task, :plan_power, :style => "width:30px;ime-mode:disable;" %>
									</td>
									<td>
										<%= select_for_codes(:dlg_tsk_edit_task, :tani_kbn, [2, 3], {}, :style=>"width:76px;" ) %>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<th><%= app_localized_message(:label, :complete_date) %></th>
						<td>
							<%= date_field :dlg_tsk_edit_task, :complete_date, :style => "width:80px;ime-mode:disabled;", :maxlength => "10" %>
						</td>
					</tr>
					<tr>
						<th><%= app_localized_message(:label, :range) %></th>
						<td style="padding:0px;border:0px;">
							<table cellspacing="0" cellpadding="0" style="border:0px;margin:0px;font-size:12px;">
								<tr>
									<td>
										<%= date_field :dlg_tsk_edit_task, :start_date, :style => "width:80px;ime-mode:disabled;", :maxlength => "10" %>
									</td>
									<td>
										～
									</td>
									<td>
										<%= date_field :dlg_tsk_edit_task, :end_date, :style => "width:80px;ime-mode:disabled;", :maxlength => "10" %>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<th><%= app_localized_message(:label, :client_user) %></th>
						<td id="dlg_tsk_edit_form_table">
							<%= select_for_users(:dlg_tsk_edit_task, :client_user_id, nil, {}, :style=>"width:200px;" ) %>
						</td>
					</tr>
					<tr>
						<th class="groupborder">
							<%= app_localized_message(:label, :charge_user) %>
						</th>
						<td class="groupborder">
								<a href="#"><%= image_tag("/images/btn/btn_select.gif", {:alt=>app_localized_message(:label, :btn_select), :id=>"dlg_tsk_edit_tuselect", :align=>"absmiddle"}) %></a>
								<span id="dlg_tsk_edit_taskusers_user_name"></span>
						</td>
					</tr>
					<tr>
						<th class="groupborder"><%= app_localized_message(:label, :result) %></th>
						<td class="groupborder">
							<%= text_area :dlg_tsk_edit_task, :result, :style=>"width:100%;", :rows=>3 %>
						</td>
					</tr>
					<tr>
						<th class="groupborder"><%= app_localized_message(:label, :memo) %></th>
						<td class="groupborder">
							<%= text_area :dlg_tsk_edit_task, :memo, :style=>"width:100%;", :rows=>3 %>
						</td>
					</tr>
					<tr>
						<th><%= app_localized_message(:label, :class_word) %></th>
						<td>
							<%= text_field :dlg_tsk_edit_comp, :class_word1, :style => "width:100%;ime-mode:active;margin-bottom: 2px;" %>
							<%= text_field :dlg_tsk_edit_comp, :class_word2, :style => "width:100%;ime-mode:active;margin-bottom: 2px;" %>
							<%= text_field :dlg_tsk_edit_comp, :class_word3, :style => "width:100%;ime-mode:active;" %>
						</td>
					</tr>
				</table>
			</form>
		</div>
		<div class="dlg_bottom" style="text-align:right;">
			<%= image_tag("/images/btn/btn_destroy.gif", {:alt=>app_localized_message(:label, :btn_destroy), :id=>"dlg_tsk_edit_destroy"}) %>
			<%= image_tag("/images/btn/btn_save.gif", {:alt=>app_localized_message(:label, :btn_save), :id=>"dlg_tsk_edit_save"}) %>
			<%= image_tag("/images/btn/btn_close.gif", {:alt=>app_localized_message(:label, :btn_close), :id=>"dlg_tsk_edit_close"}) %>
		</div>
	</div>
</div>